#makefile for market project
CC=g++
CFLAGS=-c -g
SRC=$(wildcard *.cpp)
OBJ=$(SRC:.cpp=.o)
EXE=model

$(EXE):$(OBJ)
	$(CC) $(OBJ) -o $@

model.o:treebuilder.h debug.h main.cpp
hashtree.o:hashnode.h hashtree.h ../config.h ../debug.h
hashnode.o:hashnode.h ../config.h stats.h ../debug.h
treebuilder:hashtree.h treebuilder.h ../config.h ../debug.h

%.o:%.cpp
	$(CC) $(CFLAGS) $< -o $@
clean:
	rm -rf $(OBJ) $(EXE)
